package leetcode;

public class demo168 {
    public String convertToTitle(int n) {
        String result="";
        while(n>0){
            result=(char)('A'+(n-1)%26)+result;
            n=(n-1)/26;
        }
        return result;
    }
}
